<?php /* Smarty version 2.6.10, created on 2011-10-08 09:30:20
         compiled from report.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'report.tpl', 17, false),array('function', 'html_select_date', 'report.tpl', 20, false),)), $this); ?>
<HTML>
<HEAD>
</HEAD>
<BODY><br>

<H1><CENTER><FONT color="red">TIPS</FONT></CENTER></H1>
<H2><CENTER><FONT color="blue">Week Report</FONT></CENTER></H2>
<HR>

<FORM name="form1" method="POST" action="<?php echo $this->_tpl_vars['PHP_SELF']; ?>
">
	<a href="index.php">Home</a>
<CENTER>
<TABLE width=100%>
	<TR>
		<TD align="center">Item :
		  <SELECT name="item" onChange="document.form1.submit();">
      <?php echo smarty_function_html_options(array('selected' => ($this->_tpl_vars['selectedExchange']),'values' => ($this->_tpl_vars['itemCmb']),'output' => ($this->_tpl_vars['itemCmb'])), $this);?>

			</SELECT>&nbsp;&nbsp;&nbsp;&nbsp;
		  Bhav Date :
		  <?php echo smarty_function_html_select_date(array('prefix' => 'fromDate','start_year' => -5,'end_year' => "+2",'day_value_format' => "%02d",'month_value_format' => "%m",'month_format' => "%b",'field_order' => 'DMY','time' => $this->_tpl_vars['fDate']), $this);?>

   		
    	&nbsp;&nbsp;&nbsp;&nbsp;Expiry Date : 
      <SELECT name="expiryDate" > 
      <?php echo smarty_function_html_options(array('selected' => ($this->_tpl_vars['expiryDateSelected']),'values' => ($this->_tpl_vars['expiryDateValues']),'output' => ($this->_tpl_vars['expiryDateOptions'])), $this);?>

      </SELECT>
		</TD>
	</TR>
</TABLE><br>

<TABLE>
	<TR>
		<TD><input type="submit" name="sbmtbtn" value="Report"></TD>
	</TR>
</TABLE><br><br>

<TABLE border=1 width=40% cellpadding="0" cellspacing="0">
	<TR bgcolor="pink">
		<TH align="center">Open</TH>
		<TH align="center">High</TH>
		<TH align="center">Low</TH>
		<TH align="center">Close</TH>
	</TR>
	<?php echo $this->_tpl_vars['msg']; ?>

	<TR>
		<TD align="center"><?php echo $this->_tpl_vars['open']; ?>
&nbsp;</TD>
		<TD align="center"><?php echo $this->_tpl_vars['high']; ?>
&nbsp;</TD>
		<TD align="center"><?php echo $this->_tpl_vars['low']; ?>
&nbsp;</TD>
		<TD align="center"><?php echo $this->_tpl_vars['close']; ?>
&nbsp;</TD>
	</TR>
</TABLE><br><br>

<TABLE border=1 width=90% cellpadding="0" cellspacing="0">
	<TR bgcolor="pink">
		<TH align="center"><font color="blue">R3</font></TH>
		<TH align="center"><font color="blue">R2</font></TH>
		<TH align="center"><font color="blue">R1</font></TH>
		<TH align="center"><font color="green">Pivot</font></TH>
		<TH align="center"><font color="red">S1</font></TH>
		<TH align="center"><font color="red">S2</font></TH>
		<TH align="center"><font color="red">S3</font></TH>
	</TR>
	<TR>
		<TD align="center"><font color="blue"><?php echo $this->_tpl_vars['R3']; ?>
</font></TD>
		<TD align="center"><font color="blue"><?php echo $this->_tpl_vars['R2']; ?>
</font></TD>
		<TD align="center"><font color="blue"><?php echo $this->_tpl_vars['R1']; ?>
</font></TD>
		<TD align="center"><font color="green"><?php echo $this->_tpl_vars['pivot']; ?>
</font></TD>
		<TD align="center"><font color="red"><?php echo $this->_tpl_vars['S1']; ?>
</font></TD>
		<TD align="center"><font color="red"><?php echo $this->_tpl_vars['S2']; ?>
</font></TD>
		<TD align="center"><font color="red"><?php echo $this->_tpl_vars['S3']; ?>
</font></TD>
	</TR>
</TABLE>
<BR><BR>
<TABLE border=1 width=30% cellpadding="0" cellspacing="0">
	<TR bgcolor="pink">
		<TH align="center">Best High</TH>
		<TH align="center">Best Low</TH>
	</TR>
	<TR>
		<TD align="center"><font color="red"><?php echo $this->_tpl_vars['bHigh']; ?>
</font></TD>
		<TD align="center"><font color="blue"><?php echo $this->_tpl_vars['bLow']; ?>
</font></TD>
	</TR>
</TABLE>

</CENTER>
</FORM>
</BODY>
</HTML>